<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>

	<class name="cn.firstsoft.modules.portlet.domain.PortletNewTab"
		table="portlet_new_tab">
		<id name="id" type="integer">
			<column name="id" />
			<generator class="native">
				<param name="sequence">PORTLET_NEW_TAB_ID_SEQ</param>
			</generator>
		</id>
		<property name="title" type="string">
			<column name="title" length="200" />
		</property>
		<property name="tittlePic" type="string">
			<column name="tittle_pic" length="500" />
		</property>
		<property name="code" type="string">
			<column name="code" length="100" />
		</property>
		<property name="logo" type="string">
			<column name="logo" length="200" />
		</property>
		<property name="openMethod" type="string">
			<column name="open_method" length="100" />
		</property>
		<property name="fieldAndFormat" type="string">
			<column name="field_and_format" length="500" />
		</property>
		<property name="rowCount" type="integer">
			<column name="row_count" />
		</property>
		<property name="colCount" type="integer">
			<column name="col_count" />
		</property>
		<property name="hasMore" type="integer">
			<column name="has_more" />
		</property>
		<property name="nameHk" type="string">
			<column name="name_hk" length="200" />
		</property>
		<property name="nameUs" type="string">
			<column name="name_us" length="200" />
		</property>
		<property name="tabClassType" type="string">
			<column name="tab_class_type" length="200" />
		</property>
		<property name="sortCol" type="string">
			<column name="sort_col" length="200" />
		</property>
		<property name="sortType" type="string">
			<column name="sort_type" length="500"/>
		</property>
		<property name="decoratorClass" type="string">
			<column name="decorator_class" length="2000" />
		</property>
		<property name="seperator" type="string">
			<column name="seperator" length="200" />
		</property>
		<property name="tabPos" type="integer">
			<column name="tab_pos" />
		</property>
		<property name="dataSrc" type="string">
			<column name="data_rc" />
		</property>
		<property name="isOuterData" type="integer">
			<column name="is_outer_data" />
		</property>
		<property name="descn" type="string">
			<column name="descn" length="500"/>
		</property>
		<property name="isShowTitle" type="integer">
			<column name="is_show_title"></column>
		</property>		
		<property name="paramJsonStr" type="string">
			<column name="param_json_str" length="300"></column>
		</property>
		<property name="tabMoreUrl" type="string">
			<column name="tab_more_url" length="800"></column>
		</property>
		<property name="urlHeight" type="string">
			<column name="url_height" length="100"/>
		</property>
		<property name="tabType" type="integer">
			<column name="tab_type"></column>
		</property>
		 <property name="newOrSet" type="integer">
               <column name="new_or_set"/>
        </property>
        
        <property name="hasRun" type="integer">
               <column name="has_run"/>
        </property>
        <property name="hasEditButton" type="integer">
               <column name="has_edit_button"/>
        </property>
        
		<many-to-one name="portletNewModules"
			class="cn.firstsoft.modules.portlet.domain.PortletNewModules" fetch="select" >
			<column name="module_id" not-null="false"/>
		</many-to-one>
		<property name="imgDisplayPattern" type="integer">
			<column name="img_display_pattern"></column>
		</property>
		<many-to-one name="portletNew" cascade="save-update"
			class="cn.firstsoft.modules.portlet.domain.PortletNew" fetch="select">
			<column name="portlet_new_id" />
		</many-to-one> 
<!--		<many-to-one name="rssPortlet" cascade="save-update"-->
<!--			class="cn.firstsoft.modules.portlet.domain.RssPortlet" fetch="select">-->
<!--			<column name="rss_id" />-->
<!--		</many-to-one> -->
<!--		<many-to-one name="newsCatalogyPortlet" cascade="save-update"-->
<!--			class="cn.firstsoft.modules.portlet.domain.NewsCatalogyPortlet" fetch="select">-->
<!--			<column name="news_id" />-->
<!--		</many-to-one> -->
		
	</class>
</hibernate-mapping>
